﻿using Terraria;
using Terraria.ID;
using Terraria.ModLoader;

namespace HardcoreGame.Content.Items.Ammo.SlingBullets
{
    public class StoneSlingBullet : ModItem
    {
        public override void SetDefaults()
        {
            Item.damage = 5;
            Item.DamageType = DamageClass.Ranged;
            Item.consumable = true;
            Item.knockBack = 2f;
            Item.shootSpeed = 4f;
            Item.ammo = Item.type;
            Item.shoot = ModContent.ProjectileType<Projectiles.Ammo.StoneSlingBullet>();
            Item.value = 4;
            Item.rare = 0;
            Item.maxStack = Item.CommonMaxStack;
            Item.width = 12;
            Item.height = 12;
        }
        public override void SetStaticDefaults()
        {
            Item.ResearchUnlockCount = 99;
        }
        public override void AddRecipes()
        {
            Recipe modRecipe = Recipe.Create(Type, 5);
            modRecipe.AddIngredient(ItemID.StoneBlock, 1);
            modRecipe.AddTile(TileID.Anvils);
            modRecipe.Register();
        }
    }
}
